package manager;

import java.util.ArrayList;

import manager.interfaces.IOrderManager;
import vo.Menu;
import vo.Order;

public class OrderManager implements IOrderManager {

	private static OrderManager orderManager;
	private ArrayList<Order> orderList;
	
	private OrderManager() { }
	
	public OrderManager getInstance() {
		
		if(null == orderManager) {
			return new OrderManager();
		} else {
			return orderManager;
		}		
	}
	
	@Override
	public void createOrder(int customId, Menu menu) {
		// TODO Auto-generated method stub
		Order newOrder = new Order(customId, menu);
		
		orderList.add(newOrder);		
	}

	@Override
	public void displayDate() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void giveCupon() {
		// TODO Auto-generated method stub
		
		int orderCount = 0;
		
		
		
	}

}
